﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using X23.Model.Excel;

namespace X23.Application.ExcelManagement.Dto
{
    public class ExportCapDto<T>
    {
        public bool IsCap { get; set; }
        public int TaskPerformanceId { get; set; }

        public T QueryInput { get; set; }
    }

    /// <summary>
    /// 导出Dto
    /// </summary>
    public class ExportDto
    {
        /// <summary>
        /// 标识
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 文件名称
        /// </summary>
        public string FileName { get; set; }
        /// <summary>
        /// 是否cap
        /// </summary>
        public bool IsCap { get; set; }
    }

    /// <summary>
    /// 导出
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ExcelDto<T>
    {
        /// <summary>
        /// 标题
        /// </summary>
        public List<ExcelTitleDto> ExcelTitleDtos { get; set; }
        /// <summary>
        /// 导出数据
        /// </summary>
        public List<T> Data { get; set; }
        /// <summary>
        /// 文件标识
        /// </summary>
        public string Guid { get; set; }
        /// <summary>
        /// 任务ID
        /// </summary>
        public int TaskId { get; set; }
    }
}
